package com.swagger.demo.admin.custom.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author: lbq
 * @email: 526509994@qq.com
 * @date: 2022/6/7
 */

@ApiModel(description = "后台返回数据kv")
public class DemoInnerResult extends DemoResult {
    @ApiModelProperty(value = "0:成功;其它:调用失败", example = "1001")
    private Integer code;

    @ApiModelProperty(value = "调用失败时返回的英文信息", example = "error.admin.nologin")
    private String error;

    @ApiModelProperty(value = "调用失败时返回的中文信息", example = "请先登录")
    private String msg;

    @ApiModelProperty(value = "实际数据")
    private InnerResult data;

    @ApiModel(description = "内部类检测结果")
    public class InnerResult {
        @ApiModelProperty(value = "0:调用成功 -1:调用失败", example = "0")
        private int code;

        @ApiModelProperty(value = "系统时间", example = "1619934304")
        private long sysTime;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public long getSysTime() {
            return sysTime;
        }

        public void setSysTime(long sysTime) {
            this.sysTime = sysTime;
        }
    }
}